package com.example.cloud.hystrix.order.service.impl;

import com.example.cloud.hystrix.order.service.PaymentHystrixService;
import org.springframework.stereotype.Component;

/**
 * 远程调用异常处理实现类
 *
 * @author Frank
 * @create 2020-12-03 9:39
 **/
@Component
public class PaymentFallbackService implements PaymentHystrixService {
    @Override
    public String paymentInfo_OK(Integer id) {
        return "-----PaymentFallbackService fall back-paymentInfo_OK";
    }

    @Override
    public String paymentInfo_TimeOut(Integer id) {
        return "-----PaymentFallbackService fall back-paymentInfo_TimeOut";
    }
}
